package com.ruoyi.tzzl.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * 用户动态对象 wz_dynamic
 * @author by caoyong
 * @date 2022/11/18
 **/
@Data
@Accessors(chain = true)
@NoArgsConstructor
@TableName("wz_dynamic")
public class WzDynamic {

    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** 微信用户id */
    @Excel(name = "微信用户id")
    private Long wid;

    /** 文字 */
    @Excel(name = "文字")
    private String thetext;

    /** 图片url */
    @Excel(name = "图片url")
    private String pictureUrl;

    /** 位置 */
    @Excel(name = "位置")
    private String location;

    /**经度*/
    private String longitude;

    /**维度*/
    private String dimensionality;

    /** 点赞人数 */
    @Excel(name = "点赞人数")
    private Integer likenums;

    /**评论人数*/
    @TableField(exist = false)
    private int commentAmount;

    /** 创建时间 */
    @Excel(name = "创建时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 删除标志（0代表存在 2代表删除） */
    @TableLogic
    private String delFlag;

    /**评论对象*/
    @TableField(exist = false)
    private List<WzComment> wzCommentList;

    /**用户信息*/
    @TableField(exist = false)
    private WzProgramUser user;

    /**是否关注(0-未关注  1-已关注)*/
    @TableField(exist = false)
    private String attention;

    /**是否实名认证(0-未实名  1-已实名)*/
    @TableField(exist = false)
    private String authentication;

    /**是否已点赞(0-未点赞  1-已点赞)*/
    @TableField(exist = false)
    private String giveAlike;

}
